home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / winlib.lzh / WINLIB / MESSAGE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-23  |  839 b   |  31 lines

  1. /********************************************************************
  2.  *                                                                    *
  3.  *    Write message to GEM                                            *
  4.  *                                                                    *
  5.  *    Copyright (C) 1994, Bitgate Software and Clever Bits            *
  6.  *    All Rights Reserved.                                            *
  7.  *                                                                    *
  8.  *    Routine to handle the passage of OBJECTS, WINDOWS and any other *
  9.  *    typedefs necessary to both routines and programs.                *
  10.  *                                                                    *
  11.  ********************************************************************/
  12.  
  13. #include "winlib.h"
  14.  
  15. #ifndef __MESSAGE__
  16. #define __MESSAGE__
  17. #endif
  18.  
  19. GLOBAL void WSend_Msg(int sendto, int msg0, char *msg3, int msg5, int msg6, int msg7)
  20. {
  21.     int    msg[8];
  22.   
  23.     msg[0] = msg0;
  24.     msg[1] = Ap_ID;
  25.     msg[2] = 0;
  26.     *(char**)&msg[3] = msg3;
  27.     msg[5] = msg5;
  28.     msg[6] = msg6;
  29.     msg[7] = msg7;
  30.     appl_write(sendto, 16, msg);
  31. }